<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFByteRangeAttributeArray Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Instance Methods</a> &#124;
<a href="interface_h_f_byte_range_attribute_array-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HFByteRangeAttributeArray Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class that represents sets of attributes, attached to ranges of bytes.  
</p>
<div class="dynheader">
Inheritance diagram for HFByteRangeAttributeArray:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_h_f_byte_range_attribute_array.png" usemap="#HFByteRangeAttributeArray_map" alt=""/>
  <map id="HFByteRangeAttributeArray_map" name="HFByteRangeAttributeArray_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Instance Methods</h2></td></tr>
<tr class="memitem:a8216048811d6fd851c8f33e1dcc89a17"><td class="memItemLeft" align="right" valign="top">(NSSet *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#a8216048811d6fd851c8f33e1dcc89a17">attributesAtIndex:length:</a></td></tr>
<tr class="separator:a8216048811d6fd851c8f33e1dcc89a17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb2542400be59ee59e4a305190b82cdd"><td class="memItemLeft" align="right" valign="top">(NSSet *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#adb2542400be59ee59e4a305190b82cdd">attributesInRange:</a></td></tr>
<tr class="separator:adb2542400be59ee59e4a305190b82cdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae10f3160458ce71b4c4918702c7fedc"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#aae10f3160458ce71b4c4918702c7fedc">rangeOfAttribute:</a></td></tr>
<tr class="separator:aae10f3160458ce71b4c4918702c7fedc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b66b8985f579eb9e926e847a80262b0"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#a2b66b8985f579eb9e926e847a80262b0">addAttribute:range:</a></td></tr>
<tr class="separator:a2b66b8985f579eb9e926e847a80262b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa564cdabfeac39cba79a148c7fee3028"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#aa564cdabfeac39cba79a148c7fee3028">removeAttribute:range:</a></td></tr>
<tr class="separator:aa564cdabfeac39cba79a148c7fee3028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c4530040ea53b75ef33f63fff664e2c"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#a0c4530040ea53b75ef33f63fff664e2c">removeAttribute:</a></td></tr>
<tr class="separator:a0c4530040ea53b75ef33f63fff664e2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f27bf5aa3cd4f15a7a0a9545735f821"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#a8f27bf5aa3cd4f15a7a0a9545735f821">removeAttributes:</a></td></tr>
<tr class="separator:a8f27bf5aa3cd4f15a7a0a9545735f821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a839ff6c9a57c1e463e8010b53707d9db"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#a839ff6c9a57c1e463e8010b53707d9db">isEmpty</a></td></tr>
<tr class="separator:a839ff6c9a57c1e463e8010b53707d9db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6599c45b61225a38f68e0dac6dbbf0a"><td class="memItemLeft" align="right" valign="top">(NSEnumerator *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#ae6599c45b61225a38f68e0dac6dbbf0a">attributeEnumerator</a></td></tr>
<tr class="separator:ae6599c45b61225a38f68e0dac6dbbf0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9db89350dd7344ea736dbca3e7571ff4"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#a9db89350dd7344ea736dbca3e7571ff4">byteRange:wasReplacedByBytesOfLength:</a></td></tr>
<tr class="separator:a9db89350dd7344ea736dbca3e7571ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa526c83b2f3c278b5f77d957f6f340b"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_range_attribute_array.html#aaa526c83b2f3c278b5f77d957f6f340b">transferAttributesFromAttributeArray:range:baseOffset:validator:</a></td></tr>
<tr class="separator:aaa526c83b2f3c278b5f77d957f6f340b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Method Documentation</h2>
<a id="a8216048811d6fd851c8f33e1dcc89a17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8216048811d6fd851c8f33e1dcc89a17">&sect;&nbsp;</a></span>attributesAtIndex:length:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (NSSet *) attributesAtIndex: </td>
          <td></td>
          <td class="paramtype">(unsigned long long)&#160;</td>
          <td class="paramname"><em>index</em></td>
        </tr>
        <tr>
          <td class="paramkey">length:</td>
          <td></td>
          <td class="paramtype">(unsigned long long *)&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the set of attributes at the given index, and the length over which those attributes are valid (if not NULL). </p>

</div>
</div>
<a id="adb2542400be59ee59e4a305190b82cdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb2542400be59ee59e4a305190b82cdd">&sect;&nbsp;</a></span>attributesInRange:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (NSSet *) attributesInRange: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td>
          <td class="paramname"><em>range</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the set of attributes within the given range. </p>

</div>
</div>
<a id="aae10f3160458ce71b4c4918702c7fedc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae10f3160458ce71b4c4918702c7fedc">&sect;&nbsp;</a></span>rangeOfAttribute:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="struct_h_f_range.html">HFRange</a>) rangeOfAttribute: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>attribute</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the first range of a given attribute. If it is not present, returns {ULLONG_MAX, ULLONG_MAX} </p>

</div>
</div>
<a id="a2b66b8985f579eb9e926e847a80262b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b66b8985f579eb9e926e847a80262b0">&sect;&nbsp;</a></span>addAttribute:range:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) addAttribute: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>attributeName</em></td>
        </tr>
        <tr>
          <td class="paramkey">range:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td>
          <td class="paramname"><em>range</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Adds a given attribute for a given range. </p>

</div>
</div>
<a id="aa564cdabfeac39cba79a148c7fee3028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa564cdabfeac39cba79a148c7fee3028">&sect;&nbsp;</a></span>removeAttribute:range:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_h_f_byte_range_attribute_array.html#a0c4530040ea53b75ef33f63fff664e2c">removeAttribute:</a> </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>attributeName</em></td>
        </tr>
        <tr>
          <td class="paramkey">range:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td>
          <td class="paramname"><em>range</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the given attribute within the given range. </p>

</div>
</div>
<a id="a0c4530040ea53b75ef33f63fff664e2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c4530040ea53b75ef33f63fff664e2c">&sect;&nbsp;</a></span>removeAttribute:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) removeAttribute: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>attributeName</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the given attribute entirely. </p>

</div>
</div>
<a id="a8f27bf5aa3cd4f15a7a0a9545735f821"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f27bf5aa3cd4f15a7a0a9545735f821">&sect;&nbsp;</a></span>removeAttributes:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) removeAttributes: </td>
          <td></td>
          <td class="paramtype">(NSSet *)&#160;</td>
          <td class="paramname"><em>attributeName</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the given attributes entirely. </p>

</div>
</div>
<a id="a839ff6c9a57c1e463e8010b53707d9db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a839ff6c9a57c1e463e8010b53707d9db">&sect;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) isEmpty </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns whether the receiver is empty. This should be a count instead. </p>

</div>
</div>
<a id="ae6599c45b61225a38f68e0dac6dbbf0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6599c45b61225a38f68e0dac6dbbf0a">&sect;&nbsp;</a></span>attributeEnumerator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (NSEnumerator *) attributeEnumerator </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns an NSEnumerator of the attributes. The attributes are returned in order, but there is no way to get the range of each attribute. </p>

</div>
</div>
<a id="a9db89350dd7344ea736dbca3e7571ff4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9db89350dd7344ea736dbca3e7571ff4">&sect;&nbsp;</a></span>byteRange:wasReplacedByBytesOfLength:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) byteRange: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td>
          <td class="paramname"><em>srcRange</em></td>
        </tr>
        <tr>
          <td class="paramkey">wasReplacedByBytesOfLength:</td>
          <td></td>
          <td class="paramtype">(unsigned long long)&#160;</td>
          <td class="paramname"><em>replacementLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Called from <a class="el" href="interface_h_f_byte_array.html" title="The principal Model class for HexFiend&#39;s MVC architecture. ">HFByteArray</a> to indicate when the bytes have changed, and the attributes need to be fixed up. </p>

</div>
</div>
<a id="aaa526c83b2f3c278b5f77d957f6f340b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa526c83b2f3c278b5f77d957f6f340b">&sect;&nbsp;</a></span>transferAttributesFromAttributeArray:range:baseOffset:validator:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) transferAttributesFromAttributeArray: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_h_f_byte_range_attribute_array.html">HFByteRangeAttributeArray</a> *)&#160;</td>
          <td class="paramname"><em>array</em></td>
        </tr>
        <tr>
          <td class="paramkey">range:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td>
          <td class="paramname"><em>range</em></td>
        </tr>
        <tr>
          <td class="paramkey">baseOffset:</td>
          <td></td>
          <td class="paramtype">(unsigned long long)&#160;</td>
          <td class="paramname"><em>baseOffset</em></td>
        </tr>
        <tr>
          <td class="paramkey">validator:</td>
          <td></td>
          <td class="paramtype">(BOOL(^)(NSString *))&#160;</td>
          <td class="paramname"><em>allowTransfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Transfer attributes in the given range from array, adding baseOffset to each attribute range. range is interpreted as a range in array. If validator is not NULL, then it is called for each attribute; a YES return allows it to be added and a NO return prevents it. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_h_f_byte_range_attribute_array_8h_source.html">HFByteRangeAttributeArray.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
